<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>校道信息管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/zhtj/xdxx/">校道信息列表</a></li>
		<shiro:hasPermission name="zhtj:xdxx:edit"><li><a href="${ctx}/zhtj/xdxx/form">校道信息添加</a></li></shiro:hasPermission>
	</ul>
	<form:form id="searchForm" modelAttribute="xdxx" action="${ctx}/zhtj/xdxx/" method="post" class="breadcrumb">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<div class="container-fluid">
		<div class="row">
			<div class="control-label col-xs-1"><label>名称：</label>
				<form:input path="mc" htmlEscape="false" maxlength="40" class="form-control input-sm input-medium"/>
			</div>
			<div class="control-label col-xs-1"><label>校区：</label>
				<form:select path="xq" class="form-control input-sm input-medium">
					<form:option value="" label=""/>
					<form:options items="${fns:getDictList('')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</div>
			<div class="btns col-xs-1" style="float: right"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></div>
		</div>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>名称</th>
				<th>校区</th>
				<th>位置</th>
				<th>介绍</th>
				<th>使用规则</th>
				<th>使用时间段</th>
				<th>最长申请时间</th>
				<th>可被申请日期</th>
				<th>占用状态</th>
				<shiro:hasPermission name="zhtj:xdxx:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="xdxx">
			<tr>
				<td><a href="${ctx}/zhtj/xdxx/form?id=${xdxx.id}">
					${xdxx.mc}
				</a></td>
				<td>
					${fns:getDictLabel(xdxx.xq, '', '')}
				</td>
				<td>
					${xdxx.wz}
				</td>
				<td>
					${xdxx.js}
				</td>
				<td>
					${xdxx.sygz}
				</td>
				<td>
					${xdxx.sysjd}
				</td>
				<td>
					${xdxx.zcsqsj}
				</td>
				<td>
					${xdxx.kbsqrq}
				</td>
				<td>
					${xdxx.zyzt}
				</td>
				<shiro:hasPermission name="zhtj:xdxx:edit"><td>
    				<a href="${ctx}/zhtj/xdxx/form?id=${xdxx.id}">修改</a>
					<a href="${ctx}/zhtj/xdxx/delete?id=${xdxx.id}" onclick="return confirmx('确认要删除该校道信息吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>